package com.calvin.study.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import cloud.alibaba.study.entity.base.ResponseVo;

//product客户端，远程调用
@FeignClient("service-product")
public interface ProductFeignClient {
	
	@GetMapping("/product/getDetail/{productId}")
	ResponseVo getDetail(@PathVariable("productId") Long productId);

}
